<template>
  <div v-loading="editLoading" class="app-container">
    <div class="editor-content" v-html="data.content"/>
  </div>
</template>

<script>
import { get } from '@/api/framework/notice/sysNotice'

export default {
  data() {
    return {
      data: '',
      editLoading: true
    }
  },
  created() {
    get(this.$route.query.id).then(data => {
      this.data = data
      this.editLoading = false
    }).catch(error => {
      console.log(error)
    })
  }
}
</script>

<style scoped>
  .editor-content{
    padding-left: 5px;
  }
</style>
